package com.longteng.lesson2.thread;

/**
 * Created by li
 * DATE : 2018/11/25 0025
 * TIME : 22:58
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:55324936@qq.com">li</a>
 */
public class PayProcessor {
    //这里就是电商的逻辑，对于开发来说，这里都是单线程，并没有多线程的概念
    public void pay(String userName){
        String name = Thread.currentThread().getName();
        System.out.println("用户:"+userName+"支付订单成功,当前线程名字:"+name);
    }
}
